org.eclipse.vtp.framework.engine.http
Class HttpConnectorServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.eclipse.vtp.framework.engine.http.HttpConnectorServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class HttpConnectorServlet
extends javax.servlet.http.HttpServlet

An HttpServlet implementation that forwards invocations to an HttpConnector.

Since:
1.0
Version:
1.0
Author:
Lonnie Pryor
See Also:
Serialized Form

Constructor Summary
HttpConnectorServlet(HttpConnector connector)
          Creates a new HttpConnector.
 
Method Summary
protected  void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
           
protected  void doHead(javax.servlet.http.HttpServletRequest arg0, javax.servlet.http.HttpServletResponse arg1)
           
protected  void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
           
protected  void process(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Process an HTTP GET or POST request.
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpConnectorServlet

public HttpConnectorServlet(HttpConnector connector)
Creates a new HttpConnector.

Parameters:
engine - The HttpConnector instance to use.
Method Detail

process

protected void process(javax.servlet.http.HttpServletRequest req,
                       javax.servlet.http.HttpServletResponse res)
                throws javax.servlet.ServletException,
                       java.io.IOException
Process an HTTP GET or POST request.

Parameters:
req - The HTTP request object.
res - The HTTP response object.
Throws:
javax.servlet.ServletException - If the method fails to complete.
java.io.IOException - If the network connection fails.

doHead

protected void doHead(javax.servlet.http.HttpServletRequest arg0,
                      javax.servlet.http.HttpServletResponse arg1)
               throws javax.servlet.ServletException,
                      java.io.IOException
Overrides:
doHead in class javax.servlet.http.HttpServlet
Throws:
javax.servlet.ServletException
java.io.IOException

doGet

protected final void doGet(javax.servlet.http.HttpServletRequest req,
                           javax.servlet.http.HttpServletResponse res)
                    throws javax.servlet.ServletException,
                           java.io.IOException
Overrides:
doGet in class javax.servlet.http.HttpServlet
Throws:
javax.servlet.ServletException
java.io.IOException

doPost

protected final void doPost(javax.servlet.http.HttpServletRequest req,
                            javax.servlet.http.HttpServletResponse res)
                     throws javax.servlet.ServletException,
                            java.io.IOException
Overrides:
doPost in class javax.servlet.http.HttpServlet
Throws:
javax.servlet.ServletException
java.io.IOException